import { sleep } from "@/utils";

import { ContactType } from "./type";

const contacts: ContactType[] = [
	{
		id: "001",
		first: "张",
		last: "三",
		avatar: "https://placekitten.com/g/200/200",
		twitter: "your_handle",
		notes: "Some notes",
		favorite: false
	},
	{
		id: "002",
		first: "李",
		last: "四",
		avatar: "https://placekitten.com/g/200/200",
		twitter: "your_handle",
		notes: "Some notes",
		favorite: true
	}
];

export async function loader() {
	await sleep(500);
	return { contacts };
}
